﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DUONGTUANVU.OOP.EXCERCISE.Bai1DN
{
    public class Models
    {
        public bool CheckUser(UserEntity objEntity)
        {
            //c2: toán tử 3 ngôi
            return (objEntity.userName.Equals("doannv") && objEntity.passWord.Equals("abc")) ? true : false;
        }
        //c1: dùng if, else
        /*if (objEntity.userName.Equals("doannv") && objEntity.passWord.Equals("abc"))
        {  return true;  }  return false*/
    }
}
